package com.mystore.framework.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface BaseService<T> extends Service{
    T selectById(int id);
    int insertOne(T t);
    boolean updateOne(T t);
    boolean deleteById(int id);
    List<T> selectAll();
    IPage<T> selectPage(Page<T> page);
    IPage<T> selectPageByData(String data,Page<T> page);
}
